<template>
	<view class="u-demo">
		<image src="../../../../static/zhihui/1.jpg" style="width: 100%;"></image>
		<uni-group title="课程分类">
			<view class="item-container">
				<view class="thumb-box" v-for="(item1, index1) in list" :key="index1" @click="dianji">
					<image class="item-menu-image" :src="item1.image" mode=""></image>
					<view class="item-menu-name">{{item1.text}}</view>
				</view>
			</view>
		</uni-group>
		<uni-group title="章节管理">
			<uni-card @click="dianji" v-for="(item,index) in 3" :title="'第'+(index+1)+'章'" thumbnail="../../../../static/zhihui/1.jpg" extra="已学习:50%">
				<view>通过智慧党建系统建设，主要解决党建宣传、学习、管理、资源等方面的基础问题</view>
				<uni-collapse>
					<uni-collapse-item title="课程列表">
						<uni-steps :options="list1" direction="column" :active="2"></uni-steps>
					</uni-collapse-item>
				</uni-collapse>
			</uni-card>
		</uni-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
						image:'../../../../static/zhihui/icon/orderIcon_act.png',
						text:'青年大学习'
					},
					{
						image:'../../../../static/zhihui/icon/orderIcon_act.png',
						text:'科技兴国'
					},
				],
				list1:[
					{title:'党员学习'},
					{title:'基础'},
					{title:'高级'}
				]
			}
		},
		methods: {
			dianji(){
				uni.navigateTo({
					url:'xianq'
				})
			}
		}
	}
</script>

<style>
	.item-container {
		display: flex;
		flex-wrap: wrap;
	}
	
	.thumb-box {
		width: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		margin-top: 20rpx;
	}
	
	.item-menu-image {
		width: 120rpx;
		height: 120rpx;
	}
</style>
